home *** CD-ROM | disk | FTP | other *** search
/ ShareWare OnLine 2 / ShareWare OnLine Volume 2 (CMS Software)(1993).iso / demos / dms4demo.zip / INSTALL.CMD < prev    next >
OS/2 REXX Batch file  |  1993-01-24  |  8KB  |  160 lines

  1. echo off
  2. cls
  3. if /%1==/ goto error2
  4. if /%2==/ goto error3
  5. if /%1==%2/ goto error1
  6. echo  ╔═════════════════════════════════════════════════════════════════╗
  7. echo  ║                                                                 ║
  8. echo  ║                       DMS/IB Installation                       ║
  9. echo  ║                                                                 ║
  10. echo  ║           Disk Management System / Intelligent Backup           ║
  11. echo  ║             Copyright 1992 Sterling Software, Inc.              ║
  12. echo  ║                                                                 ║
  13. echo  ╠═════════════════════════════════════════════════════════════════╣
  14. echo  ║                                                                 ║
  15. echo  ║    DMS/IB is being installed from floppy disk %1: to             ║
  16. echo  ║    hard disk drive %2:                                           ║
  17. echo  ║                                                                 ║
  18. echo  ╟─────────────────────────────────────────────────────────────────╢
  19. echo  ║                                                                 ║
  20. echo  ║ Press (CTRL/BREAK) if you do not wish to continue with install. ║
  21. echo  ║                                                                 ║
  22. echo  ╚═════════════════════════════════════════════════════════════════╝
  23. pause
  24. cls
  25. echo  ╔═════════════════════════════════════════════════════════════════╗
  26. echo  ║                                                                 ║
  27. echo  ║                       DMS/IB Installation                       ║
  28. echo  ║                                                                 ║
  29. echo  ║           Disk Management System / Intelligent Backup           ║
  30. echo  ║             Copyright 1992 Sterling Software, Inc.              ║
  31. echo  ║                                                                 ║
  32. echo  ╠═════════════════════════════════════════════════════════════════╣
  33. echo  ║                                                                 ║
  34. echo  ║  Installation will use a new or existing directory \DMSDIR.     ║
  35. echo  ║  If the directory already exists it will be reused.             ║
  36. echo  ║                                                                 ║
  37. echo  ║  You will need about 500K characters of free disk space to      ║
  38. echo  ║  run DMS/IB.  There is no limit to the number of times you      ║
  39. echo  ║  can install DMS/IB.                                            ║
  40. echo  ║                                                                 ║
  41. echo  ╟─────────────────────────────────────────────────────────────────╢
  42. echo  ║                                                                 ║
  43. echo  ║ Press (CTRL/BREAK) if you do not wish to continue with install. ║
  44. echo  ║                                                                 ║
  45. echo  ╚═════════════════════════════════════════════════════════════════╝
  46. pause
  47. cls
  48. echo  Install started.....
  49. %2:
  50. cd \
  51. md \DMSDIR
  52. cd \DMSDIR
  53. if exist FILENAME.NDX del FILENAM?.NDX
  54. if exist VPOOL.DAT    del VPOO?.DAT
  55. if exist HELP.DAT     del HELP.DAT
  56. if exist HELP.NDX     del HELP.NDX
  57. if exist MSG.DAT      del MSG.DAT
  58. if exist IB.EXE       del IB.EXE
  59. if exist IBCHECK.EXE  del IBCHECK.EXE
  60. if exist AUTOINST.EXE del AUTOINST.EXE
  61. if exist IBT*.*       del IBT*.*
  62. if exist FILEEXCL.TXT del FILEEXCL.TXT
  63. if exist HISTORY.TXT  del HISTORY.TXT
  64. if exist IBOPTN.DAT   del IBOPTN.DAT
  65. if exist IBUBN.OVL    del IBUBN.OVL
  66. if exist IB.CMD       del IB.CMD
  67. if exist IBSTART.CMD  del IBSTART.CMD
  68. cls
  69. echo PLEASE WAIT. Copying DMS/IB program files ...
  70. %1:
  71. cd\dmsdir
  72. copy %1:\dmsdir %2:\dmsdir
  73. %2:
  74. echo PLEASE WAIT. Confirming proper installation ...
  75. if exist IBCONV.* del IBCONV.*
  76. cls
  77. if not exist IBOPTN.DAT   goto error4
  78. if not exist IBUBN.OVL    goto error4
  79. if not exist HELP.NDX     goto error4
  80. if not exist HELP.DAT     goto error4
  81. if not exist MSG.DAT      goto error4
  82. if not exist IB.EXE       goto error4
  83. if not exist FILEEXCL.TXT goto error4
  84. if not exist HISTORY.TXT  goto error4
  85. if not exist IBT2LANG.DAT goto error4
  86. if not exist IBT4LANG.DAT goto error4
  87. if not exist IBT2INST.DAT goto error4
  88. if not exist AUTOINST.EXE goto error4
  89. if not exist IBASPI.SYS   goto error4
  90. if not exist IBSTART.CMD  goto error4
  91. autoinst %1 %2
  92. pause
  93. cd \
  94. if exist CONFIG.IBS del CONFIG.IBS
  95. cd \DMSDIR
  96. if exist AUTOINST.EXE del AUTOINST.EXE
  97. if exist IBT2INST.DAT del IBT2INST.DAT
  98. cls
  99. echo  ╔═════════════════════════════════════════════════════════════════╗
  100. echo  ║                                                                 ║
  101. echo  ║   Install Complete.  Just type "IB" to start your first backup. ║
  102. echo  ║                                                                 ║
  103. echo  ║   Be sure to print and read the README file that is included    ║
  104. echo  ║   on the installation diskette.  You will find information on   ║
  105. echo  ║   the latest beta testing status.                               ║
  106. echo  ║                                                                 ║
  107. echo  ╚═════════════════════════════════════════════════════════════════╝
  108. goto end
  109. :error1
  110. cls
  111. echo  ╔═════════════════════════════════════════════════════════════════╗
  112. echo  ║ Error - Floppy and Hard disk drive ID are the same              ║
  113. echo  ╚═════════════════════════════════════════════════════════════════╝
  114. goto error
  115. :error2
  116. cls
  117. echo  ╔═════════════════════════════════════════════════════════════════╗
  118. echo  ║ Error - Floppy and Hard disk drive IDs not specified            ║
  119. echo  ╚═════════════════════════════════════════════════════════════════╝
  120. goto error
  121. :error3
  122. cls
  123. echo  ╔═════════════════════════════════════════════════════════════════╗
  124. echo  ║ Error - Hard disk drive ID not specified                        ║
  125. echo  ╚═════════════════════════════════════════════════════════════════╝
  126. goto error
  127. :error4
  128. echo ╔═════════════════════════════════════════════════════════════════╗
  129. echo ║                                                                 ║
  130. echo ║  Installation Failed!  This may be due to insufficient disk     ║
  131. echo ║  space or disk I/O error.  Confirm that 500K of usable disk     ║
  132. echo ║  space is available, then begin installation again.             ║
  133. echo ║                                                                 ║
  134. echo ╚═════════════════════════════════════════════════════════════════╝
  135. pause
  136. echo off
  137. echo please wait...
  138. cd \
  139. if exist IB.CMD       del IB.CMD
  140. goto end
  141. :error
  142. echo  ╔═════════════════════════════════════════════════════════════════╗
  143. echo  ║                                                                 ║
  144. echo  ║         Install failed!  Check for proper command syntax.       ║
  145. echo  ║                                                                 ║
  146. echo  ║       floppy-letter:INSTALL floppy-letter hard-disk-letter      ║
  147. echo  ║                                                                 ║
  148. echo  ║   Example:  To install from distribution diskette in floppy     ║
  149. echo  ║             drive A: to a hard disk (Fixed Disk) referred to    ║
  150. echo  ║             as drive C: use the following command               ║
  151. echo  ║                                                                 ║
  152. echo  ║                        A:INSTALL A C                            ║
  153. echo  ║                                                                 ║
  154. echo  ╚═════════════════════════════════════════════════════════════════╝
  155. pause
  156. :end
  157. cd\
  158. cd %1:\ >nul
  159. cd %2:\ >nul
  160.